package com.igelato.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
    import lombok.experimental.Accessors;


/**
 * @TableName: order_goods
 * @Description: 商品订单
 * @Author: wht
 * @Date: 2024-01-25
 */
@Data
    @Accessors(chain = true)
@TableName(value = "order_goods")
public class OrderGoods implements Serializable{
                        private Long id;
        private Integer user_id;
        private String goods_list;
        @ApiModelProperty("所有商品的总数量")
        private Short goods_total_count;
        @ApiModelProperty("用户下单时所在的位置")
        private Double user_latitude;
        @ApiModelProperty("用户下单时所在的位置")
        private Double user_longitude;
        private Integer shop_id;
        private String shop_name;
        private String shop_address;
        private Integer coupon_id;
        private Integer coupon_money;
        @ApiModelProperty("这次订单使用了多少积分")
        private Integer use_points;
        @ApiModelProperty("所有商品总金额")
        private Integer total_money;
        @ApiModelProperty("最终用户支付的总金额")
        private Integer pay_money;
        @ApiModelProperty("取餐码（未支付时没有取餐码，所以值可以为空）")
        private String get_goods_code;
        @ApiModelProperty("1：堂食；2：带走；3：外卖；")
        private Byte eat_type;
        @ApiModelProperty("1: 余额；2：微信；")
        private Byte pay_type;
        @ApiModelProperty("微信支付的唯一标识码")
        private String wx_pay_id;
        @ApiModelProperty("微信支付验证码")
        private String wx_pay_verify_code;
        @ApiModelProperty("微信支付前的（应该可以删掉）")
        private String wx_pre_pay_info;
        @ApiModelProperty("微信支付验证（应该可以删掉）")
        private String wx_pay_callback_info;
        @ApiModelProperty("1: 未支付； 2： 已支付； 3：已接单；4：制作完成；5：已取走； -1：申请退款；-2：已沟通；-3：申请退款成功；-4：已完成退款；-9：申请退款失败；-99：已删除；")
        private Byte status;
        private LocalDateTime create_time;
        private LocalDateTime update_time;
        @ApiModelProperty("用户支付的时间")
        private LocalDateTime pay_time;
        @ApiModelProperty("预计取餐时间（值为null则表示立即取餐）")
        private LocalDateTime get_goods_time;
        @ApiModelProperty("真正取餐时间")
        private LocalDateTime take_away_goods_time;
@TableField(exist = false)
private static final long serialVersionUID=1L;

        }
